{template "nheader.html"}

<div class="alert alert-info">
	会员组：{$member.groupname}，{if $member.levelid}会员等级：{$member.levelname} &nbsp;{dr_show_stars($member.levelstars)}{/if}
</div>

<div class="row">
	<div class="col-md-12">

		<div class="portlet-body">

			<div class="table-responsive">
				<table class="table">
					<thead>
					<tr>
						<th class=""> 名称 </th>
						<th> 费用 </th>
						<th> 操作 </th>
					</tr>
					</thead>
					<tbody id="dr_body">
					{loop $group $t}
					<tr>
						<td class="algin_l">{$t.name}</td>
						<td class="algin_l">
							{if $t.unit==1}
							{intval($t.price)}
							{SITE_SCORE}
							{else}
							{$t.price}
							{SITE_MONEY}
							{/if}
							/
							{if $t.limit==1}月
							{else if $t.limit==2}半年
							{else if $t.limit==3}年
							{else if $t.limit==4}永久
							{/if}
						</td>
						<td class="algin_l">
							<a href="{dr_member_url('account/permission', array('groupid'=>$t.id))}" class="btn btn-xs blue"> <i class="fa fa-user"></i> 权限查看</a>
							{if $member.overdue < 2000000000 || $t.id!=$member.groupid}
							<a href="{dr_member_url('account/upgrade', array('id' => $t.id))}" class="btn btn-xs green">{if $t.id==$member.groupid}<i class="fa fa-rmb"></i> 立即续费{else}<i class="fa fa-arrow-up"></i> 立即申请{/if}</a>
							{/if}
						</td>
					</tr>
					{/loop}
					</tbody>
				</table>
			</div>

		</div>


	</div>
</div>

{if IS_MOBILE}
<div class="alert alert-info">
	左右滑动表格可以查看更多的内容
</div>
{/if}
{template "nfooter.html"}